package com.repair.api.worker.request;

import com.repair.api.user.request.condition.UserCondition;
import com.repair.api.user.request.condition.UserPhoneQueryCondition;
import com.repair.api.worker.request.condition.WorkerAuthCondition;
import com.repair.api.worker.request.condition.WorkerCondition;
import com.repair.api.worker.request.condition.WorkerIdQueryCondition;
import com.repair.api.worker.request.condition.WorkerPhoneQueryCondition;
import com.repair.base.request.BaseRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * Created by IntelliJ IDEA.
 *
 * @author zq
 * @version 1.0
 * @create 2024-09-29 15:00
 * @since jdk1.8
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class WorkerQueryRequest extends BaseRequest {
    private static final long serialVersionUID = 1L;

    private WorkerCondition workerCondition;

    public WorkerQueryRequest(String phone) {
        WorkerPhoneQueryCondition workerPhoneQueryCondition = new WorkerPhoneQueryCondition();
        workerPhoneQueryCondition.setPhone(phone);
        this.workerCondition = workerPhoneQueryCondition;
    }
    public WorkerQueryRequest(Long id){
        WorkerIdQueryCondition workerIdQueryCondition = new WorkerIdQueryCondition();
        workerIdQueryCondition.setId(id);
        this.workerCondition = workerIdQueryCondition;
    }
}
